package cn.com.dhcc.adam.spring.annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestAnno {
	
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		ApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);
		AlarmService srv = ctx.getBean(AlarmService.class);
		System.out.println(srv.getAlarmInfo());
	}
	
}
